Skip to content

Use the actual readme as the pyproject.toml readme#21166

Open
wyattscarpenter wants to merge 2 commits intopython:masterfrom
wyattscarpenter:patch-2
Open

Use the actual readme as the pyproject.toml readme#21166
wyattscarpenter wants to merge 2 commits intopython:masterfrom
wyattscarpenter:patch-2

Conversation

@wyattscarpenter
Copy link
Copy Markdown
Contributor

@wyattscarpenter wyattscarpenter commented Apr 4, 2026

Fixes #12456, making the pypi project page readme much less bare-bones. It uses this pyproject,toml field, which we were already using: https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#readme

Since our readme started by jumping right into the "Got a question?" section, I copied the description that used to be on the pypi page into our readme to be a little orienting summary right after before that.

I also changed the relative link to CONTRIBUTING.md to be a non-relative link, so it will work on pypi as well.

Fixes python#12456

Things to consider:

Our current readme starts with "Got a question?". We could start with a short description instead, copying in our current description paragraph:

Add type annotations to your Python programs, and use mypy to type check them. Mypy is essentially a Python linter on steroids, and it can catch many programming errors by analyzing your program, without actually having to run it. Mypy has a powerful type system with features such as type inference, gradual typing, generics and union types."

Occasionally there is a relative link, like [CONTRIBUTING.md](CONTRIBUTING.md). Do those need to be changed?
@github-actions

This comment has been minimized.

@wyattscarpenter wyattscarpenter marked this pull request as ready for review April 4, 2026 01:26
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 4, 2026

According to mypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

(📚) The readme on pypi is quite minimal

1 participant